using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class CmsNewsInfosManagerBase
    {
        public CmsNewsInfosManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity Insert(CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity Update(CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.Update(obj);             
        }
 
 
        public CmsNewsInfosEntity Delete(CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByAbsolute (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Absolute");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Absolute 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByAbsolute (string Absolute )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Absolute = Absolute;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Absolute");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByContentBody (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"ContentBody");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ContentBody 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByContentBody (string ContentBody )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"ContentBody");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByCreatedBy (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedBy 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByCreatedBy (string CreatedBy )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByCreatedDate (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien CreatedDate 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByCreatedDate (DateTime CreatedDate )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien History duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByHistory (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"History");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien History 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByHistory (string History )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.History = History;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"History");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteById (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Id 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteById (Guid Id )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Id = Id;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Id");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Lang duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByLang (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Lang");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Lang 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByLang (string Lang )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Lang = Lang;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Lang");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NewsId duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByNewsId (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"NewsId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NewsId 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByNewsId (Guid NewsId )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.NewsId = NewsId;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"NewsId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByTitle (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Title");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien Title 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByTitle (string Title )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Title = Title;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"Title");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByUpdatedBy (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedBy 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByUpdatedBy (string UpdatedBy )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByUpdatedDate (CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UpdatedDate 
        /// </summary>
        /// <returns>CmsNewsInfosEntity</returns>
        public CmsNewsInfosEntity DeleteByUpdatedDate (DateTime UpdatedDate )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return (CmsNewsInfosEntity)Adapter.DeleteByField(obj,"UpdatedDate");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public CmsNewsInfosEntity Select(CmsNewsInfosEntity obj)
        { 
            return (CmsNewsInfosEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(CmsNewsInfosEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(CmsNewsInfosEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new CmsNewsInfosEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new CmsNewsInfosEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<CmsNewsInfosEntity> SelectAllLST()
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new CmsNewsInfosEntity()),new CmsNewsInfosEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<CmsNewsInfosEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new CmsNewsInfosEntity(),option),new CmsNewsInfosEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Absolute");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Absolute",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByAbsoluteLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Absolute"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByAbsoluteLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Absolute",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (string Absolute )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Absolute = Absolute;  
            return Adapter.SelectByField(obj,"Absolute");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByAbsolute (string Absolute, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Absolute = Absolute;  
            return Adapter.SelectByField(obj,"Absolute",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByAbsoluteLST (string Absolute )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Absolute = Absolute;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Absolute"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Absolute duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByAbsoluteLST (string Absolute, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Absolute = Absolute;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Absolute",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"ContentBody");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ContentBody",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByContentBodyLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ContentBody"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByContentBodyLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ContentBody",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (string ContentBody )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return Adapter.SelectByField(obj,"ContentBody");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByContentBody (string ContentBody, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return Adapter.SelectByField(obj,"ContentBody",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByContentBodyLST (string ContentBody )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ContentBody"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ContentBody duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByContentBodyLST (string ContentBody, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.ContentBody = ContentBody;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ContentBody",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByCreatedByLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByCreatedByLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedBy",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedBy (string CreatedBy, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return Adapter.SelectByField(obj,"CreatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByCreatedByLST (string CreatedBy )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByCreatedByLST (string CreatedBy, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedBy = CreatedBy;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedBy",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByCreatedDateLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByCreatedDateLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"CreatedDate",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByCreatedDate (DateTime CreatedDate, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return Adapter.SelectByField(obj,"CreatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByCreatedDateLST (DateTime CreatedDate )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien CreatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByCreatedDateLST (DateTime CreatedDate, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.CreatedDate = CreatedDate;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"CreatedDate",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByHistory (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"History");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByHistory (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"History",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByHistoryLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"History"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByHistoryLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"History",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByHistory (string History )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.History = History;  
            return Adapter.SelectByField(obj,"History");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByHistory (string History, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.History = History;  
            return Adapter.SelectByField(obj,"History",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByHistoryLST (string History )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.History = History;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"History"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien History duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByHistoryLST (string History, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.History = History;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"History",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByIdLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByIdLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Id",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectById (Guid Id, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Id = Id;  
            return Adapter.SelectByField(obj,"Id",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByIdLST (Guid Id )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Id = Id;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Id duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByIdLST (Guid Id, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Id = Id;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Id",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLang (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Lang");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLang (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Lang",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByLangLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Lang"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByLangLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Lang",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLang (string Lang )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Lang = Lang;  
            return Adapter.SelectByField(obj,"Lang");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLang (string Lang, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Lang = Lang;  
            return Adapter.SelectByField(obj,"Lang",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByLangLST (string Lang )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Lang = Lang;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Lang"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Lang duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByLangLST (string Lang, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Lang = Lang;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Lang",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNewsId (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"NewsId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNewsId (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NewsId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByNewsIdLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NewsId"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByNewsIdLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NewsId",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNewsId (Guid NewsId )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.NewsId = NewsId;  
            return Adapter.SelectByField(obj,"NewsId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNewsId (Guid NewsId, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.NewsId = NewsId;  
            return Adapter.SelectByField(obj,"NewsId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByNewsIdLST (Guid NewsId )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.NewsId = NewsId;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NewsId"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NewsId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByNewsIdLST (Guid NewsId, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.NewsId = NewsId;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NewsId",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"Title");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"Title",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByTitleLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Title"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByTitleLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"Title",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (string Title )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Title = Title;  
            return Adapter.SelectByField(obj,"Title");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTitle (string Title, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Title = Title;  
            return Adapter.SelectByField(obj,"Title",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByTitleLST (string Title )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Title = Title;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Title"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien Title duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByTitleLST (string Title, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.Title = Title;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"Title",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedByLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedByLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedBy",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedBy (string UpdatedBy, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return Adapter.SelectByField(obj,"UpdatedBy",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedByLST (string UpdatedBy )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedBy duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedByLST (string UpdatedBy, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedBy = UpdatedBy;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedBy",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (CmsNewsInfosEntity obj)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedDateLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedDateLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UpdatedDate",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUpdatedDate (DateTime UpdatedDate, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return Adapter.SelectByField(obj,"UpdatedDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedDateLST (DateTime UpdatedDate )
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate"),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UpdatedDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<CmsNewsInfosEntity> SelectByUpdatedDateLST (DateTime UpdatedDate, SelectOptions option)
        { 
            CmsNewsInfosEntity obj = new CmsNewsInfosEntity();
            obj.UpdatedDate = UpdatedDate;  
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UpdatedDate",option),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectWithConditionLST (CmsNewsInfosEntity obj)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new CmsNewsInfosEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<CmsNewsInfosEntity></returns>
        public List<CmsNewsInfosEntity> SelectWithConditionLST (CmsNewsInfosEntity obj,SelectOptions option)
        { 
            return  (List<CmsNewsInfosEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new CmsNewsInfosEntity());
        }

}
}
